.page {
    display: block;
    width: 100vw;
    height: 100vh;
    position: relative;
}
canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}
.box {
    user-select: none;
    width: 300px;
    position: fixed;
    // left: 0;
    top: 0;
    height: 100vh;
    // overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: all 300ms;
    .p-title {
        background: #a0a0a0;
        color: #333;
        padding: 4px 10px;
        font-size: 12px;
    }
    .p-content {
        flex: 1;
        height: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .line {
        position: absolute;
        // right: 0;
        top: 0;
        z-index: 1;
        width: 6px;
        height: 100%;
        background: transparent;
        transition: all 300ms;
        &:hover {
            background: #2881b4;
            cursor: ew-resize;
        }
    }
}
.tog-btn {
    position: absolute;
    top: 0;
    width: 30px;
    height: 30px;
    background: rgba(16, 187, 255, 0.4) url("./asset/arrow.png") no-repeat center;
    background-size: 50% auto;
    transition: background-color 300ms, left 300ms, right 300ms;
    &:hover {
        background-color: #2881b4;
    }
}
.b-right {
    right: 0;
    &.min {
        transform: translateX(100%);
    }
    .line {
        left: 0;
    }
    .tog-btn {
        right: 6px;
        transform: rotate(-90deg);
        &.sm{
            transform: rotate(90deg);
        }
    }
}
.b-left {
    left: 0;
    &.min {
        transform: translateX(-100%);
    }
    .line {
        right: 0;
    }
    .tog-btn {
        left: 6px;
        transform: rotate(90deg);
        &.sm{
            transform: rotate(-90deg);
        }
    }
}
